<template>
  <div class="hero">
    <div class="overlay">
      <div class="content">
        <h1 class="main-title">🖐 手势识别系统</h1>
        <p class="subtitle">基于深度学习的实时手势识别平台</p>
      </div>
    </div>
  </div>

  <!-- ① 项目概览 -->
  <section class="overview">
    <h2 class="section-title">📌 项目概览</h2>
    <div class="overview-row">
      <div class="overview-card">
        <div class="icon">⚡</div>
        <h3>实时识别</h3>
        <p>通过摄像头快速获取手势数据，毫秒级反馈。</p>
      </div>
      <div class="overview-card">
        <div class="icon">🎯</div>
        <h3>高精度模型</h3>
        <p>采用 ResNet18 架构，确保分类准确率达 95%以上。</p>
      </div>
      <div class="overview-card">
        <div class="icon">🖥</div>
        <h3>轻量部署</h3>
        <p>基于 Flask + Vue 架构，前后端解耦，轻松部署。</p>
      </div>
    </div>
  </section>

  <!-- ② 技术栈 -->
  <
  <section class="tech">
    <h2 class="section-title">🧰 技术栈</h2>
    <div class="tech-card-grid">
      <div class="tech-card">Vue 3</div>
      <div class="tech-card">Springboot</div>
      <div class="tech-card">Flask</div>
      <div class="tech-card">PyTorch</div>
    </div>
  </section>

  <!-- ③ 核心功能 -->
  <section class="features">
    <h2 class="section-title">🎯 核心功能</h2>
    <div class="feature-grid">
      <div class="feature-item">
        <div class="feature-icon">📷</div>
        <h3>实时摄像头采集</h3>
        <p>浏览器接入摄像头，获取视频流作为模型输入。</p>
      </div>
      <div class="feature-item">
        <div class="feature-icon">🧠</div>
        <h3>手势识别模型</h3>
        <p>深度神经网络自动推理当前手势类型。</p>
      </div>
      <div class="feature-item">
        <div class="feature-icon">📊</div>
        <h3>识别结果可视化</h3>
        <p>将识别结果同步显示在 UI 上，并提供历史数据。</p>
      </div>
      <div class="feature-item">
        <div class="feature-icon">🖼</div>
        <h3>图片上传识别</h3>
        <p>支持用户上传单张图片进行手势分类。</p>
      </div>
    </div>
  </section>
</template>

<style scoped>
/* 保留 hero 部分原样 */
.hero {
  background-image: url('https://th.bing.com/th/id/R.21c8e14cb09d872eb5e015e7b93c3d41?rik=WkaqSuQHgdPipA&riu=http%3a%2f%2fwww.kuaipng.com%2fUploads%2fpic%2fwater%2f26931%2fgoods_water_26931_698_376.32_.png&ehk=LRVEzN02quEGNRw60WD22iCJVPWCKVeJDtr6vE9Bfr4%3d&risl=&pid=ImgRaw&r=0');
  background-size: cover;
  background-position: center;
  height: 60vh;
  position: relative;
  color: white;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.55);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  text-align: center;
}

.main-title {
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 22px;
  opacity: 0.9;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #007acc;
}

/* ① 项目概览 */
.overview {
  padding: 80px 60px;
  background: #f6f9fc;
}
.overview-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.overview-card {
  flex: 1;
  min-width: 280px;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f7fa, #ffffff);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center;
}
.overview-card:hover {
  transform: translateY(-6px);
}
.icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* ② 技术栈 */
.tech {
  padding: 80px 60px;
  background-color: #f9fbfd;
}

.tech-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.tech-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  padding: 24px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #007acc;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.1);
}

/* ③ 核心功能 */
.features {
  padding: 80px 60px;
  background: #fcfcfc;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.feature-item {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.feature-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 16px;
  color: #555;
}

/* 响应式 */
@media (max-width: 768px) {
  .overview-row {
    flex-direction: column;
  }
  .tech-list {
    gap: 24px;
  }
}
</style>
